<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateAppsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('apps', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('appcatid')->comment('关联分类ID');
            $table->string('title')->default('')->comment('软件名称');
            $table->string('logo')->default('')->comment('封面');
            $table->string('version')->default('')->comment('软件版本');
            $table->string('size')->default('')->comment('文件大小');
            $table->string('supportsystem')->default('')->comment('支持系统');
            $table->string('url')->default('')->comment('软件官网');
            $table->string('downurl')->default('')->comment('下载地址');
            $table->text('content')->default('')->comment('');
            $table->timestamp('time')->comment('时间');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('apps');
    }
}
